package cn.pugle.base.TExp;

public class TAndExp extends TExp {
    public TAndExp(TExp le, TExp re) {
        leftExp = le;
        rightExp = re;
    }
    
    @Override
    public boolean matches(TLog log) {
        return (leftExp.matches(log) && rightExp.matches(log));
    }

    @Override
    public String toString() {
        return "(" + leftExp.toString() + "&" + rightExp.toString() + ")";
    }
    protected TExp leftExp;
    protected TExp rightExp;
}
